﻿#ifndef SQLITEDPOOL_H
#define SQLITEDPOOL_H

#include <QObject>
#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlQuery>
#include <QSqlRecord>

#include <QDebug>

class SQLitedPool : public QObject
{
    Q_OBJECT
public:

    SQLitedPool(QObject *parent = nullptr);

    static SQLitedPool* getInstance();

    void reset_LG_DataBase();

    void reset_PL_DataBase();

    void reset_QR_DataBase();

    QSqlDatabase *get_LG_DataBase();

    QSqlDatabase *get_PL_DataBase();

    QSqlDatabase* get_QR_DataBase();

private:

    QSqlDatabase* m_LG_Choose = nullptr;
    QSqlDatabase* m_PL_Process = nullptr;
    QSqlDatabase* m_QR_Process = nullptr;

signals:
};

#endif // SQLITEDPOOL_H
